import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";


// 人员进入
// 查询人员进入信息  /bussiness/ApplyDetail/info
export function ApplyDetailInfo(applydetailId) {
  return request({
    url: '/bussiness/ApplyDetail/info?id=' + applydetailId,
    method: 'get',
    isEncrypt: false
  })
}
// 人员进入录入 /dev-api/bussiness/ApplyDetail/comeIn
export function ApplyDetailcomeIn(data) {
  return request({
    url: '/bussiness/ApplyDetail/comeIn',
    data:data,
    method: 'post',
    isEncrypt: false
  })
}

// 办案区更换房间 /bussiness/ApplyDetail/changeRoom
export function changeRoom(data) {
  return request({
    url: '/bussiness/ApplyDetail/changeRoom',
    data:data,
    method: 'post',
    isEncrypt: false
  })
}


// 办案区更换房间列表 /policeArea/RoomChangeRecord/list
export function RoomChangeRecordList(data) {
  return request({
    url: '/policeArea/RoomChangeRecord/list',
    data:data,
    method: 'post',
    isEncrypt: false
  })
}
// 人员离开 /dev-api/bussiness/ApplyDetail/getOut
export function ApplyDetailgetOut(data) {
  return request({
    url: '/bussiness/ApplyDetail/getOut',
    data:data,
    method: 'post',
    isEncrypt: false
  })
}

// 安检           安检       安检
// 查询安检列表  /dev-api/policeArea/SecurityCheck/list
export function SecurityCheckList(data,query) {
  return request({
    url: '/policeArea/SecurityCheck/list',
    method: 'post',
    params: query,
    data:data,
    isEncrypt: false
  })
}

// 详情   policeArea/SecurityCheck/info
export function SecurityCheckInfo(jwSecuritycheckId) {
  return request({
    url: '/policeArea/SecurityCheck/info?id=' + jwSecuritycheckId,
    method: 'get',
    isEncrypt: false
  })
}
// 新增安检  /policeArea/SecurityCheck/add
export function SecurityCheckAdd(data) {
  return request({
    url: '/policeArea/SecurityCheck/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 编辑安检  /policeArea/SecurityCheck/add
export function SecurityCheckEdit(data) {
  return request({
    url: '/policeArea/SecurityCheck/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除安检信息  /dev-api/policeArea/SecurityCheck/remove
export function deleteSecurityCheck(jwSecuritycheckId) {
  return request({
    url: '/policeArea/SecurityCheck/remove?id=' + jwSecuritycheckId,
    method: 'post',
    isEncrypt: false
  })
}


// 就医体检           就医体检       就医体检
// 就医体检 -- 查询列表  /dev-api/policeArea/Physicalexamination/list
export function PhysicalexaminationList(data,query) {
  return request({
    url: '/policeArea/Physicalexamination/list',
    method: 'post',
    params: query,
    data:data,
    isEncrypt: false
  })
}

// 就医体检 -- 详情   policeArea/Physicalexamination/info
export function PhysicalexaminationInfo(jwSecuritycheckId) {
  return request({
    url: '/policeArea/Physicalexamination/info?id=' + jwSecuritycheckId,
    method: 'get',
    isEncrypt: false
  })
}
// 就医体检 -- 新增  /policeArea/Physicalexamination/add
export function PhysicalexaminationAdd(data) {
  return request({
    url: '/policeArea/Physicalexamination/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 就医体检 -- 编辑  /policeArea/Physicalexamination/add
export function PhysicalexaminationEdit(data) {
  return request({
    url: '/policeArea/Physicalexamination/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 就医体检 -- 删除  /dev-api/policeArea/Physicalexamination/remove
export function deletePhysicalexamination(jwSecuritycheckId) {
  return request({
    url: '/policeArea/Physicalexamination/remove?id=' + jwSecuritycheckId,
    method: 'post',
    isEncrypt: false
  })
}

// 物品寄存           物品寄存       物品寄存
// 物品寄存 --查询列表  /dev-api/policeArea/GoodsMain/list
export function GoodsMainList(data,query) {
  return request({
    url: '/policeArea/GoodsMain/list',
    method: 'post',
    params: query,
    data:data,
    isEncrypt: false
  })
}

// 物品寄存 --详情   policeArea/GoodsMain/info
export function GoodsMainInfo(data) {
  return request({
    url: '/policeArea/GoodsMain/info?jwGoodsMainId=' + data,
    method: 'get',
    isEncrypt: false
  })
}
// 物品寄存 --寄存  /policeArea/GoodsMain/add
export function GoodsMainAdd(data) {
  return request({
    url: '/policeArea/GoodsMain/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 物品寄存 --归还/policeArea/GoodsMain/edit
export function GoodsMainEdit(data) {
  return request({
    url: '/policeArea/GoodsMain/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}


// 特情登记           特情登记       特情登记
// 特情登记 --查询列表  /dev-api/policeArea/DutyRecord/list
export function DutyRecordList(data,query) {
  return request({
    url: '/policeArea/DutyRecord/list',
    method: 'post',
    data: data,
    params: query,
    isEncrypt: false
  })
}

// 特情登记 --详情   policeArea/DutyRecord/info
export function DutyRecordInfo(jwSecuritycheckId) {
  return request({
    url: '/policeArea/DutyRecord/info?id=' + jwSecuritycheckId,
    method: 'get',
    isEncrypt: false
  })
}
// 特情登记 --新增  /policeArea/DutyRecord/add
export function DutyRecordAdd(data) {
  return request({
    url: '/policeArea/DutyRecord/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 特情登记 --编辑  /policeArea/DutyRecord/edit
export function DutyRecordEdit(data) {
  return request({
    url: '/policeArea/DutyRecord/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 特情登记 --删除  /policeArea/DutyRecord/remove
export function deletePDutyRecord(jwSecuritycheckId) {
  return request({
    url: '/policeArea/DutyRecord/remove?id=' + jwSecuritycheckId,
    method: 'post',
    isEncrypt: false
  })
}


// 违规违纪登记           违规违纪登记       违规违纪登记
// 违规违纪登记 --查询列表  policeArea/BreakRoles/list
export function BreakRolesList(data,query) {
  return request({
    url: '/policeArea/BreakRoles/list',
    method: 'post',
    data: data,
    params: query,
    isEncrypt: false
  })
}

// 违规违纪登记 --详情   policeArea/BreakRoles/info
export function BreakRolesInfo(jwSecuritycheckId) {
  return request({
    url: '/policeArea/BreakRoles/info?id=' + jwSecuritycheckId,
    method: 'get',
    isEncrypt: false
  })
}
// 违规违纪登记 --新增  /policeArea/BreakRoles/add
export function BreakRolesAdd(data) {
  return request({
    url: '/policeArea/BreakRoles/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 违规违纪登记 --编辑  /policeArea/BreakRoles/edit
export function BreakRolesEdit(data) {
  return request({
    url: '/policeArea/BreakRoles/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 违规违纪登记 --删除  /policeArea/BreakRoles/remove
export function deleteBreakRoles(jwSecuritycheckId) {
  return request({
    url: '/policeArea/BreakRoles/remove?id=' + jwSecuritycheckId,
    method: 'post',
    isEncrypt: false
  })
}


// 
// 法律文书           法律文书       法律文书
// 法律文书 --查询列表  /bussiness/ApplyDetail/docList
export function docList(data) {
  return request({
    url: '/bussiness/ApplyDetail/docList',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 法律文书 --详情   /bussiness/ApplyDetail/image
export function imageInfo(jwSecuritycheckId) {
  return request({
    url: '/bussiness/ApplyDetail/image?jwUploadId=' + jwSecuritycheckId,
    method: 'get',
    responseType: 'blob', // 设置响应类型为 blob
    isEncrypt: false
  })
}
// 法律文书 --上传  /bussiness/ApplyDetail/uploadFile
export function uploadFile(data) {
  return request({
    url: '/bussiness/ApplyDetail/uploadFile',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 签名图片列表  /policeArea/FileUpload/docList
export function SignList(data) {
  return request({
    url: '/policeArea/FileUpload/docList',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 签名图片详情 /policeArea/FileUpload/image
export function SignimageInfo(query) {
  return request({
    url: '/policeArea/FileUpload/image?jwUploadId=' + query,
    method: 'get',
    responseType: 'blob', // 设置响应类型为 blob
    isEncrypt: false
  })
}
// 签名上传 --上传  /policeArea/FileUpload/uploadFile
export function SignuploadFile(data,query) {
  return request({
    url: '/policeArea/FileUpload/uploadFile',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: data,
    params: query,
    isEncrypt: false
  })
}
// 签名删除  /policeArea/FileUpload/delUploadFile
export function SignDelFile(query) {
  return request({
    url: '/policeArea/FileUpload/delUploadFile?jwUploadId=' + query,
    method: 'post',
    isEncrypt: false
  })
}
// 法律文书 --全部保存  /bussiness/ApplyDetail/saveUploadFile
export function saveUploadFile(data) {
  return request({
    url: '/bussiness/ApplyDetail/saveUploadFile',
    method: 'post',
    data: data,
    isEncrypt: false  
  })
}
// 法律文书 --删除  /bussiness/ApplyDetail/delUploadFile
export function delUploadFile(jwUploadId) {
  return request({
    url: '/bussiness/ApplyDetail/delUploadFile?jwUploadId=' + jwUploadId,
    method: 'post',
    isEncrypt: false
  })
}
 
// 办案超时预警 
export function getOverTimeList(data) {
  return request({
    url: '/bussiness/ApplyDetail/overTimeList',
    data:data,
    method: 'post',
    isEncrypt: false
  })
}

// 违规违纪 
export function getViolationList(data) {
  return request({
    url: '/bussiness/ApplyDetail/violationList',
    data:data,
    method: 'post',
    isEncrypt: false
  })
}